

#include "event.h"

unsigned char event_next_pwm0;
unsigned char event_next_signal0;
unsigned char event_next_pwm1;
unsigned char event_next_signal1;
unsigned char event_executed;

eventbuffer event_thread_0;
eventbuffer event_thread_1;

void event_process(void)
{
	if ( event_executed )
	{
		M8C_DisableGInt;
		
		//set next signal
		
		event_executed = 0;
		M8C_EnableGInt;
	}
}

void event_init(void)
{
	event_next_pwm0 = 0;
	event_next_signal0 = 0;
	event_next_pwm1 = 0;
	event_next_signal1 = 0;
	event_executed = 1;
}

